(function(angular) {
  angular.module("myApp.controllers", []);
  angular.module("myApp.services", []);
  angular.module("myApp", ["ngResource", "myApp.controllers", "myApp.services"]);
  
//  var phonecatApp = angular.module('phonecatApp', []);
//  phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {
//    $http.get('phones/phones.json').success(function(data) {
//      $scope.phones = data;
//    });
  
//  angular.module('myApp', [])
//  .controller('CurTimeController',function($scope) {
//	  $scope.getCurrentSecond = function() {
//	        $scope.x = new Date().getSeconds();
//	    };
//  });

}(angular));
  
//  var appModule = angular.module('myApp', []);
//  appModule.controller('CurTimeController',function($scope) {
//	  $scope.getCurrentSecond = function() {
//	        $scope.x = new Date().getSeconds();
//	    };
//  });
